package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 dingdan
 * 
 * @author ruoyi
 */
@Data
public class Dingdan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    @Excel(name = "订单id")
    private Long ddId;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ddAddtime;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long ddSpId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long ddYhId;

    /** 关联配送员ID */
    @Excel(name = "关联配送员ID")
    private Long ddPsyId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long ddShuliang;

    /** 交易状态ID */
    @Excel(name = "交易状态ID")
    private Long ddJysId;

    /** 操作 */
    @Excel(name = "操作")
    private String ddCaozuo;

    /** 订单分类ID */

    @Excel(name = "订单分类ID")
    private Long ddDdflId;

    /** 订单配送方式 */
    @Excel(name = "订单配送方式")
    private String ddPeisong;
    private double ddYingfu;
    private double ddShifu;
    private String ddZhifufangshi;
    //用户列表
    private Yonghu yonghu;
    //配送员列表
    private Peisongyuan peisongyuan;
    //商品列表
    private Shangpin shangpin;
    //订单分类表
    private Ddfenlei ddfenlei;

    public void setDdId(Long ddId) 
    {
        this.ddId = ddId;
    }

    public Long getDdId() 
    {
        return ddId;
    }
    public void setDdAddtime(Date ddAddtime) 
    {
        this.ddAddtime = ddAddtime;
    }

    public Date getDdAddtime() 
    {
        return ddAddtime;
    }
    public void setDdSpId(Long ddSpId) 
    {
        this.ddSpId = ddSpId;
    }

    public Long getDdSpId() 
    {
        return ddSpId;
    }
    public void setDdYhId(Long ddYhId) 
    {
        this.ddYhId = ddYhId;
    }

    public Long getDdYhId() 
    {
        return ddYhId;
    }
    public void setDdPsyId(Long ddPsyId) 
    {
        this.ddPsyId = ddPsyId;
    }

    public Long getDdPsyId() 
    {
        return ddPsyId;
    }
    public void setDdShuliang(Long ddShuliang) 
    {
        this.ddShuliang = ddShuliang;
    }

    public Long getDdShuliang() 
    {
        return ddShuliang;
    }
    public void setDdJysId(Long ddJysId) 
    {
        this.ddJysId = ddJysId;
    }

    public Long getDdJysId() 
    {
        return ddJysId;
    }
    public void setDdCaozuo(String ddCaozuo) 
    {
        this.ddCaozuo = ddCaozuo;
    }

    public String getDdCaozuo() 
    {
        return ddCaozuo;
    }
    public void setDdDdflId(Long ddDdflId) 
    {
        this.ddDdflId = ddDdflId;
    }

    public Long getDdDdflId() 
    {
        return ddDdflId;
    }
    public void setDdPeisong(String ddPeisong) 
    {
        this.ddPeisong = ddPeisong;
    }

    public String getDdPeisong() 
    {
        return ddPeisong;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ddId", getDdId())
            .append("ddAddtime", getDdAddtime())
            .append("ddSpId", getDdSpId())
            .append("ddYhId", getDdYhId())
            .append("ddPsyId", getDdPsyId())
            .append("ddShuliang", getDdShuliang())
            .append("ddJysId", getDdJysId())
            .append("ddCaozuo", getDdCaozuo())
            .append("ddDdflId", getDdDdflId())
            .append("ddPeisong", getDdPeisong())
            .toString();
    }
}
